package com.renatn.yach.domain;

import javax.persistence.*;

/**
 * User: rnasyrov
 * Date: 10.01.12
 * Time: 12:23
 */


@Entity
@Table(name = "items")
public class YachItem extends DomainObject {

    @Column
    private String name;

    @Column
    private boolean done;
    
    @ManyToOne
    private YachList list;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isDone() {
        return done;
    }

    public void setDone(boolean done) {
        this.done = done;
    }

    public YachList getList() {
        return list;
    }

    public void setList(YachList list) {
        this.list = list;
    }
}
